package com.example.ucs_alg_node_manager.controller;

import com.example.ucs_alg_node_manager.vo.ReturnVO;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/mqtt")
@CrossOrigin
@Api("测试mqtt发送消息")
public class MqttController {


    @ApiOperation("测试mqtt发布消息")
    @GetMapping("/test")
    public ReturnVO test() throws JsonProcessingException {
        ObjectMapper objectMapper = new ObjectMapper();
        List<String> list = new ArrayList<>();
        list.add("123");
        list.add("456");
        return null;
    }

}
